package com.hangjiang.gulidear.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Issueevalue entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "issueevalue", catalog = "sqm")
public class IssueEvalue extends BaseEntity {

	// Fields

	private String evalueId;
	private User user;
	private ConfigIssue configissue;
	private Integer evaluePass;
	private String evalueOpinnion;
	private Timestamp evalueTime;

	// Constructors

	/** default constructor */
	public IssueEvalue() {
	}

	/** full constructor */
	public IssueEvalue(User user, ConfigIssue configissue, Integer evaluePass,
			String evalueOpinnion, Timestamp evalueTime) {
		this.user = user;
		this.configissue = configissue;
		this.evaluePass = evaluePass;
		this.evalueOpinnion = evalueOpinnion;
		this.evalueTime = evalueTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "evalueId", unique = true, nullable = false, length = 32)
	public String getEvalueId() {
		return this.evalueId;
	}

	public void setEvalueId(String evalueId) {
		this.evalueId = evalueId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userId")
	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "issueId")
	public ConfigIssue getConfigissue() {
		return this.configissue;
	}

	public void setConfigissue(ConfigIssue configissue) {
		this.configissue = configissue;
	}

	@Column(name = "evaluePass")
	public Integer getEvaluePass() {
		return this.evaluePass;
	}

	public void setEvaluePass(Integer evaluePass) {
		this.evaluePass = evaluePass;
	}

	@Column(name = "evalueOpinnion")
	public String getEvalueOpinnion() {
		return this.evalueOpinnion;
	}

	public void setEvalueOpinnion(String evalueOpinnion) {
		this.evalueOpinnion = evalueOpinnion;
	}

	@Column(name = "evalueTime", length = 0)
	public Timestamp getEvalueTime() {
		return this.evalueTime;
	}

	public void setEvalueTime(Timestamp evalueTime) {
		this.evalueTime = evalueTime;
	}

}